from dataclasses import dataclass


@dataclass
class C:
    name: str
    age: int


c = C(name="John", age=19)
print(f"{c.name = }, {c.age = }")
